package com.example.stock.base;

import android.app.Application;

import com.example.stock.http.Api;
import com.example.stock.http.HttpManager;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

public class BaseViewModel extends AndroidViewModel {

    public Api api;

    public MutableLiveData<String> dialogMsg = new MutableLiveData<>();
    public MutableLiveData<Boolean> showDialog = new MutableLiveData<>();

    public MutableLiveData<String> getDialogMsg() {
        return dialogMsg;
    }

    public MutableLiveData<Boolean> getShowDialog() {
        return showDialog;
    }

    public BaseViewModel(@NonNull Application application) {
        super(application);
        api = HttpManager.getInstance().getApi();
    }



}
